package com.example.pda.data.model;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Transient;

import java.io.Serializable;
import java.util.List;

import org.greenrobot.greendao.annotation.Generated;

/**
 * {
 * 			"hgsl": "10",
 * 			"invcode": "0403100126",
 * 			"invname": "方体袋",
 *          "ggxh":"1-1",
 * 			"pch": "20230101001",
 *          "gyspch":"1001001",
 * 			"bstockid": "1082A31000000011BG7D",
 * 			"bstockname": "辅料库",
 * 			"bhwid": "1082A31000000011BG7D",
 * 			"bhwname": "A货位"
 *
 *
 * 	"meaname": "",
 * 		"ddnum": "",
 * 		"totalarrnum": "",
 * 		"totalstocknum": "",
 * 		"totaloutnum": ""
 *  }
 */
@Entity
public class GoodItem implements Serializable {
    public static final long serialVersionUID = -15515456L;
    @Id(autoincrement = true)
    private Long id;
    private String djh;
    // 可出数量
    private String hgsl;
    // 申请数量
    private String ycsl;
    // 存货编码
    private String invcode;
    // 存货名称
    private String invname;
    // 规格型号
    private String ggxh;
    // 批次号
    private String pch;
    // 供应商批次号
    private String gyspch;
    // 仓库id
    private String bhwcode;
    // 仓库名称
    private String bstockname;
    // 货位id
    private String bstockcode;
    // 货位名称
    private String bhwname;
    // 供应商code
    private String gyscode;
    // 供应商名称
    private String gysname;

    @Transient
    private int bhwIndex;
    @Transient
    private int bstockIndex;
    @Transient
    private List<HwList> hwList;
    @Transient
    private List<StockList> stockList;

    // 扫码返回 结存数量 （扫码数量）
    private String sl;
    @Transient
    private String oriSl;
    // 备注
    private String bz;
    // 0 默认； 1 已更新； 2已上传
    private int type;
    @Generated(hash = 1643602448)
    public GoodItem(Long id, String djh, String hgsl, String ycsl, String invcode,
            String invname, String ggxh, String pch, String gyspch, String bhwcode,
            String bstockname, String bstockcode, String bhwname, String gyscode,
            String gysname, String sl, String bz, int type) {
        this.id = id;
        this.djh = djh;
        this.hgsl = hgsl;
        this.ycsl = ycsl;
        this.invcode = invcode;
        this.invname = invname;
        this.ggxh = ggxh;
        this.pch = pch;
        this.gyspch = gyspch;
        this.bhwcode = bhwcode;
        this.bstockname = bstockname;
        this.bstockcode = bstockcode;
        this.bhwname = bhwname;
        this.gyscode = gyscode;
        this.gysname = gysname;
        this.sl = sl;
        this.bz = bz;
        this.type = type;
    }
    @Generated(hash = 1542682040)
    public GoodItem() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getDjh() {
        return this.djh;
    }
    public void setDjh(String djh) {
        this.djh = djh;
    }
    public String getHgsl() {
        return this.hgsl;
    }
    public void setHgsl(String hgsl) {
        this.hgsl = hgsl;
    }
    public String getInvcode() {
        return this.invcode;
    }
    public void setInvcode(String invcode) {
        this.invcode = invcode;
    }
    public String getInvname() {
        return this.invname;
    }
    public void setInvname(String invname) {
        this.invname = invname;
    }
    public String getGgxh() {
        return this.ggxh;
    }
    public void setGgxh(String ggxh) {
        this.ggxh = ggxh;
    }
    public String getPch() {
        return this.pch;
    }
    public void setPch(String pch) {
        this.pch = pch;
    }
    public String getGyspch() {
        return this.gyspch;
    }
    public void setGyspch(String gyspch) {
        this.gyspch = gyspch;
    }
    public String getBhwcode() {
        return this.bhwcode;
    }
    public void setBhwcode(String bhwcode) {
        this.bhwcode = bhwcode;
    }
    public String getBstockname() {
        return this.bstockname;
    }
    public void setBstockname(String bstockname) {
        this.bstockname = bstockname;
    }
    public String getBstockcode() {
        return this.bstockcode;
    }
    public void setBstockcode(String bstockcode) {
        this.bstockcode = bstockcode;
    }
    public String getBhwname() {
        return this.bhwname;
    }
    public void setBhwname(String bhwname) {
        this.bhwname = bhwname;
    }
    public String getGyscode() {
        return this.gyscode;
    }
    public void setGyscode(String gyscode) {
        this.gyscode = gyscode;
    }
    public String getGysname() {
        return this.gysname;
    }
    public void setGysname(String gysname) {
        this.gysname = gysname;
    }
    public String getSl() {
        return this.sl;
    }
    public void setSl(String sl) {
        this.sl = sl;
    }
    public String getBz() {
        return this.bz;
    }
    public void setBz(String bz) {
        this.bz = bz;
    }
    public int getType() {
        return this.type;
    }
    public void setType(int type) {
        this.type = type;
    }

    public int getBhwIndex() {
        return bhwIndex;
    }

    public void setBhwIndex(int bhwIndex) {
        this.bhwIndex = bhwIndex;
    }

    public int getBstockIndex() {
        return bstockIndex;
    }

    public void setBstockIndex(int bstockIndex) {
        this.bstockIndex = bstockIndex;
    }

    public List<HwList> getHwList() {
        return hwList;
    }

    public void setHwList(List<HwList> hwList) {
        this.hwList = hwList;
    }

    public List<StockList> getStockList() {
        return stockList;
    }

    public void setStockList(List<StockList> stockList) {
        this.stockList = stockList;
    }

    public String getOriSl() {
        return oriSl;
    }

    public void setOriSl(String oriSl) {
        this.oriSl = oriSl;
    }

    public String getYcsl() {
        return ycsl;
    }

    public void setYcsl(String ycsl) {
        this.ycsl = ycsl;
    }
}
